package com.babayetu.myclang03grammaranalysis.utils;

import com.babayetu.myclang03grammaranalysis.model.SimpleTokenReader;
import com.babayetu.myclang03grammaranalysis.model.Token;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SimpleTokenReaderHelper {
    public static void dump(SimpleTokenReader reader) {
        log.info("text\ttype");
        Token<String> token = null;
        while ((token= reader.read())!=null){
            log.info(token.getValue()+"\t\t"+token.getType());
        }
    }
}
